//package com.example.administrator.managesystem.activity;
//
//import android.support.v4.widget.SwipeRefreshLayout;
//import android.support.v7.widget.DefaultItemAnimator;
//import android.support.v7.widget.LinearLayoutManager;
//import android.support.v7.widget.RecyclerView;
//import android.view.View;
//import android.widget.Toast;
//import com.example.administrator.managesystem.R;
//import com.example.administrator.managesystem.adapter.NormalRecyclerViewAdapter;
//import com.example.administrator.managesystem.base.BaseActivity;
//import com.example.administrator.managesystem.base.BaseHelper;
//import com.example.administrator.managesystem.utils.ToastUtils;
//import com.jcodecraeer.xrecyclerview.XRecyclerView;
//import java.util.ArrayList;
//import java.util.List;
//
//public class OrderMessageActivity extends BaseActivity implements NormalRecyclerViewAdapter.IonSlidingViewClickListener, SwipeRefreshLayout.OnRefreshListener{
//    private RecyclerView xRecyclerView;
//    private NormalRecyclerViewAdapter adapter;
//    private List<String> message = new ArrayList<>();
//    @Override
//    public void initView() {
//        showfloatButton(true,true);
//        xRecyclerView=findViewById(R.id.order_message_recycler);
//        message.add("1");
//        message.add("2");
//        message.add("3");
//        message.add("4");
//
//    }
//
//    @Override
//    public void doBusiness() {
////        xRecyclerView.setLayoutManager(new LinearLayoutManager(this));//这里用线性显示 类似于listview
////       // BaseHelper.setLinearLayoutManagerVertical(OrderMessageActivity.this,xRecyclerView,adapter);
////        //下面的两种方式自己可以试试看下效果就知道了
////        //mRecyclerView.setLayoutManager(new GridLayoutManager(this, 2));//这里用线性宫格显示 类似于grid view
////        //mRecyclerView.setLayoutManager(new     StaggeredGridLayoutManager(2,OrientationHelper.VERTICAL));//这里用线性宫格显示 类似于瀑布流
////        adapter = new NormalRecyclerViewAdapter(this);
////        adapter.updateData(message);
////        //设置Item增加、移除动画
////        xRecyclerView.setItemAnimator(new DefaultItemAnimator());
////        xRecyclerView.setAdapter(adapter);
//
//
//        xRecyclerView.setLayoutManager(new LinearLayoutManager(this));
//        xRecyclerView.setAdapter(adapter = new NormalRecyclerViewAdapter(this));
//        xRecyclerView.setItemAnimator(new DefaultItemAnimator());
//
//    }
//
//
//    @Override
//    public int getLayoutId() {
//        return R.layout.activity_order_list;
//    }
//
//    @Override
//    public void onRefresh() {
//
//    }
//
//    @Override
//    public void onItemClick(View view, int position) {
//        ToastUtils.showToast(OrderMessageActivity.this,"点了"+position,Toast.LENGTH_SHORT);
//    }
//
//    @Override
//    public void onDeleteBtnCilck(View view, int position) {
//        adapter.removeData(position);
//    }
//}
